package com.sayimo.maker.mall.goods.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.sayimo.framework.exception.ServiceException;



/**
 * @Project: schoolmallapi
 * @ClassName: GoodsCommentIterfaceService
 * @Description: 商品评论service
 * @Author:	曹频辉
 * @Date:	日期：2015年12月28日  时间：下午6:11:34
 * @Version 1.0.0
 */
public interface GoodsCommentIterfaceService {
	
	/** 
	* @Title: insertGoodsCommentOrReply 
	* @Description: 添加商品评论或回复
	* @param goodsComment
	 * @param request 
	* @throws ServiceException
	* @return Map
	*/ 
	public Map insertGoodsCommentOrReply(HttpServletRequest request) throws ServiceException;

	
	/** 
	* @Title: queryGoodsComment 
	* @Description: 查询商品评论
	* @param goodsId
	* @param recordNum
	 * @param goodsType 
	* @throws ServiceException
	* @return Map
	*/ 
	public Map queryGoodsComment(Integer goodsId,Integer recordNum) throws ServiceException;
	
	/**
	 * 
	* @Title: canComment 
	* @Description: 该用户是否可对该商品评论
	* @param customerId
	* @param goodsId
	* @return
	* @throws ServiceException
	* @return boolean
	* @throws
	 */
	public boolean canComment(Integer customerId,Integer goodsId)throws ServiceException;
}
